PackageReader.TransmitFile Method

Writes a file directly to a web page response. This method should be used whenever possible, as it has much better performance than reading a file into a stream and copying it to the response.

Parent Type: PackageReader

Namespace: Microsoft.LearningComponents

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public abstract void TransmitFile (
string filePath,
HttpResponse response

)

Parameters

filePath

The package-relative path to the file.

response

The response to write to.